package cn.shengchao.examstar.distribute.infrastrure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "distribute_order_sale_refund")
public class DistributeOrderSaleRefund {
    /**
     * 自增字段
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 订单子id
     */
    @TableField(value = "order_item_id")
    private Long orderItemId;

    /**
     * 分销用户id
     */
    @TableField(value = "distribute_user_id")
    private Long distributeUserId;

    /**
     * 分销角色
     */
    @TableField(value = "distribute_role_code")
    private String distributeRoleCode;

    /**
     * 退费分销金额
     */
    @TableField(value = "distribute_amount_refund")
    private BigDecimal distributeAmountRefund;

    @TableField(value = "refund_id")
    private Integer refundId;

    @TableField(value = "create_user")
    private Long createUser;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_user")
    private Long updateUser;

    @TableField(value = "update_time")
    private Date updateTime;
}